package com.songcan.oauth.vo;


import com.songcan.model.oauth.SysRole;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RoleVO {

    private Long roleId;

    private String name;

    private String roleCode;

    private String roleDesc;

    private Date createTime;

    private List<Jurisdiction>  jurisdictions;




    public RoleVO(SysRole sysRole,List<Jurisdiction> list){
        this.roleId = sysRole.getRoleId();
        this.name = sysRole.getRoleName();
        this.roleCode = sysRole.getRoleCode();
        this.roleDesc = sysRole.getRoleDesc();
        this.createTime = sysRole.getCreateTime();
        this.jurisdictions = list;
    }
}
